RefPair
Ecng.Common
Represents a pair of reference values.
実装: IRefTuple
コンストラクター
RefPair
public RefPair(TFirst first, TSecond second)
refPair = RefPair(first, second)
Initializes a new instance of the RefPair class with specified values.
- first
- The first element.
- second
- The second element.
プロパティ
First
public TFirst First { get; set; }
value = refPair.First
refPair.First = value
Gets or sets the first element.
Second
public TSecond Second { get; set; }
value = refPair.Second
refPair.Second = value
Gets or sets the second element.
Values
public virtual IEnumerable<object> Values { get; set; }
value = refPair.Values
refPair.Values = value
Gets or sets the tuple values.
メソッド
GetValuesString
protected virtual string GetValuesString()
result = refPair.GetValuesString()
Gets a string that represents the tuple values.
戻り値: A string representation of the tuple values.
ToString
public override string ToString()
result = refPair.ToString()
Returns a string that represents the tuple.
戻り値: A string representation of the tuple.
ToValuePair
public KeyValuePair<TFirst, TSecond> ToValuePair()
result = refPair.ToValuePair()
Converts the tuple to a KeyValuePair.
戻り値: A KeyValuePair containing the first and second elements.